package com.furtherstar.auth.init.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class InitListener implements ApplicationListener<ApplicationStartedEvent>{
	
	@Autowired
	private InitService initService;

	@Override
	public void onApplicationEvent(ApplicationStartedEvent event) {
		initService.init();
	}

}
